/*
 * 文件名：UserDetailsImpl.java
 * 版权：Copyright by www.nd.com
 * 描述：
 * 修改人：Administrator
 * 修改时间：2016年10月18日
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */

package com.wmzdq.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import com.wmzdq.dto.Trole;
import com.wmzdq.dto.Tuser;

public class UserDetailsImpl extends User
{

    public UserDetailsImpl(String username, String password,
                           Collection<? extends GrantedAuthority> authorities)
    {
        super(username, password, authorities);
        // TODO Auto-generated constructor stub
    }
    
    

    /**
     * 意义，目的和功能，以及被用到的地方<br>
     */
    private static final long serialVersionUID = 1L;
    
    /**
     * 该对象为数据库实体类对象
     */
    private Tuser userEntity;
    private Trole role;
    public Tuser getUserEntity()
    {
        return userEntity;
    }
    public void setUserEntity(Tuser userEntity)
    {
        this.userEntity = userEntity;
    }
    public Trole getRole()
    {
        return role;
    }
    public void setRole(Trole role)
    {
        this.role = role;
    }

   


}
